Enter some text in the field below, then press the "Reset form" button to reset the form.

First name:

The reset() method of the HTML DOM Form Object resets the values of all elements in a form. When this happens, the onreset event fires, which will trigger the alert function.